package com.vhuomai.product.home.mapper;

import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.auto.OrderBy;
import com.vhuomai.product.home.entity.BaseHomeCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HomeCategoryMapper extends AutoMapper<BaseHomeCategory, Integer> {
    @OrderBy(value = "category_order", desc = false)
    List<BaseHomeCategory> findByMerchantNo(@Param("merchantNo") Integer merchantNo);
}
